//
//  LHPageScrollView.h
//  Login
//
//  Created by tgs on 2017/2/16.
//  Copyright © 2017年 tgs. All rights reserved.
//

#import <UIKit/UIKit.h>

#define DefaultItemWidth       60.0f
#define DefaultLineColor       [UIColor colorWithRed:234/255.0f green:237/255.0f blue:240/255.0f alpha:1];


#define DefaultTextColor       [UIColor blackColor]
#define DefaultSelectTextColor [UIColor colorWithRed:1.00f green:0.49f blue:0.65f alpha:1.00f]

#define LineHeight             (1 / [UIScreen mainScreen].scale)
#define DefaultFont            [UIFont systemFontOfSize:17.0]
#define SelectFont            [UIFont systemFontOfSize:22.0]

@protocol MrLvSegmentViewDelegate <NSObject>
@optional
/**
 选择index回调
 
 */
-(void)selectedIndex:(NSInteger)index;
@end

@interface LHPageScrollView : UIView

/**
 选择回调
 */
@property (nonatomic, assign)id<MrLvSegmentViewDelegate> delegate;

/**
 * 按钮宽度
 *
 */
@property (nonatomic, assign) CGFloat itemWidth;

/**
 * 标题数组
 *
 */
@property (nonatomic, strong) NSArray *arrTitiles;
/**
 * 标题字体
 *
 */
 @property (nonatomic, strong) UIFont *font;

/**
 * 选中标题字体
 *
 */
@property (nonatomic, strong) UIFont *selectFont;

/**
 * 选中的view圆点
 *
 **/
@property (nonatomic, strong) UIView *selectView;

/**
 *  设置item字体颜色
 *
 */
@property(nonatomic, strong) UIColor *textColor;

/**
 *  设置item选中字体颜色
 *
 */
@property(nonatomic, strong) UIColor *selectTextColor;

/**
 *  设置整个view底部的线条颜色
 *
 */
@property(nonatomic, strong) UIColor *lineColor;

/**
 *  设置偏移位置
 *
 */
@property(nonatomic, assign) CGPoint contentOffset;

/**
 *  是否开启滑动缩放动效
 *
 */
@property(nonatomic, assign) BOOL scale;


/**
 手动选择
 
 @param index inde（从0开始）
 */
-(void)selectIndex:(NSInteger)index;

@end
